package com.grm.sys.mapper;

import com.grm.sys.model.SysPost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysPostMapper {
    SysPost queryById(Long id);

    SysPost queryListByUserId(@Param("userId") Long userId);

    List<SysPost> queryAll();

    List<SysPost> queryList(@Param("queryParam")SysPost queryParam);
    SysPost queryByCode(@Param("code")String code);

    void insert(SysPost sysPost);

    void update(SysPost sysPost);

    void deleteByIds(@Param("ids")List<Long> ids);
}
